#include "CppUnitLite/TestHarness.h"
#include "Stack.h"

#include <string>

TEST( Stack, creation )
{
  Stack s;
  CHECK_EQUAL(0, s.size());
  std::string b = "asa";
  CHECK_EQUAL(b, "asa");
}

TEST( Stack, creation2 )
{
  Stack s;
  CHECK_EQUAL(0, s.size());
  std::string b = "asab";
  CHECK_EQUAL("asa", b);
}

class StackTest: public CPPUNITLITE3_NS::TestFixture
{
protected:
    virtual void setUp();
    virtual void tearDown();

    int m_a;
};
void StackTest::setUp()
{
    m_a = 1;
}
void StackTest::tearDown()
{
}


TEST_F(StackTest, test1)
{
    //strlen(NULL);
    Stack s;
    CHECK_EQUAL(0, s.size());
    std::string b = "ccc";
    CHECK_EQUAL("ccc", b);
    CHECK_EQUAL(2, m_a);
}

TEST_F(StackTest, test2)
{
    m_a = 2;
    std::string b = "aaa";
    CHECK_EQUAL(2, m_a);
    FAIL("just a test: %d", 11);
}

